package model

import (
	"context"
	"service/ctrl"
	"service/model/mod"

	gpb "gitee.com/cloudapex/protos/crm_base/pb"
	"google.golang.org/grpc"
)

var BaseLog baseLog

func init() {
	ctrl.GCon.RegistClienter(mod.GCONN_CRM_BASE, func(c *grpc.ClientConn) {
		BaseLog.cli = gpb.NewBaseLogSerClient(c)
	})
}

type baseLog struct {
	cli gpb.BaseLogSerClient
}

//说明：获取数据流转记录列表
//参数：1.PoolLogListReq 分页请求
func (this *baseLog) GetPoolLogList(ctx context.Context, in *gpb.PoolLogListReq) (*gpb.PoolLogListRes, error) {
	return this.cli.GetPoolLogList(ctx, in)
}
